package com.shuma.shopmanage.shopmodule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuma.shopmanage.model.draft.model.GoodsDraft;
import com.shuma.shopmanage.model.shop.model.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select * from goods where id = #{goodsId}")
    public Goods selectById(@Param("goodsId")Long goodsId);

    @Update("update goods set manageUserId = #{userId} where id = #{goodsId}")
    public void goodsTransferManagement(@Param("goodsId")Long goodsId, @Param("userId") Long userId);

}